package com.zeh.billing.mapper;

import com.zeh.billing.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zeh.billing.entity.CustomerVo;
import com.zeh.billing.entity.SearchCustomerDo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zeh
 * @since 2021-08-20
 */
@Component
public interface CustomerMapper extends BaseMapper<Customer> {

    boolean updateCard(@Param("id") int id, @Param("numcard") int numcard);

    boolean updateMoney (@Param("id") int id,@Param("money") Double money,@Param("card") int card);

    List<CustomerVo> selectCustomer(@Param("dto") SearchCustomerDo customerDo);
}
